<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html lang="en" >
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <title>甬邦会务</title>
    <link rel="stylesheet" href="${ctx}/resources/yb/style/weui/weui.min.css" />
    <link rel="stylesheet" href="${ctx}/resources/yb/style/weui/example.css" />
    <link rel="stylesheet" href="${ctx}/resources/yb/style/weui/weuiNew.min.css" />
    <link rel="stylesheet" href="${ctx}/resources/yb/style/weui/plus.css" />


    <script src="http://cdn.bootcss.com/jquery/1.8.3/jquery.js"></script>
    <script src="${ctx}/resources/yb/js/app.js"></script>
    <script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
    <script src="${ctx}/resources/yb/js/wechat.api.js"></script>
    <meta name="format-detection" content="telephone=no" />
    <style type="text/css">
        section {
            max-width: 100%;
        }
    </style>
</head>
<body>
<script>
    $(function () {
        var url = window.location.href;
        url = url.replace(/&/g, "%26");
        $.ajax({
            url: '/OAuth/WxShare?url=' + url,
            type: 'POST',
            dataType: 'json',
            success: function (data) {
                wx.config({
                    debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来，若要查看传入的参数，可以在pc端打开，参数信息会通过log打出，仅在pc端时才会打印。  //appId: "wx8c534c995ee68d7e", // 必填，公众号的唯一标识
                    appId: data.AppId, // 必填，公众号的唯一标识
                    timestamp: data.Timestamp, // 必填，生成签名的时间戳
                    nonceStr: data.NonceStr, // 必填，生成签名的随机串
                    signature: data.Signature, // 必填，签名，见附录1
                    jsApiList: [
                        'onMenuShareAppMessage',
                        'onMenuShareTimeline',
                        'hideOptionMenu',
                        'showOptionMenu',
                        'showMenuItems',
                        'hideMenuItems',
                        'openLocation'
                    ] // 必填，需要使用的JS接口列表，所有JS接口列表见附录2
                });
            }
        });
        WeChat.hideOptionMenu();


        <%--var exp = new Date();--%>
        <%--exp.setTime(exp.getTime() + 1000 * 60 * 60 * 24*365);--%>
        <%--document.cookie = "userId=${activityUser.userId};expires=" + exp.toGMTString();--%>
    })
</script>

<div class="page slideIn cell">
    <div class="plusMsg ol">
        <div class="top">
            <i class="weui-icon-success weui-icon_msg img"></i>
            <div class="title">
                报名成功
            </div>
            <div class="ul btn-box">
                <div class="f2"></div>
                <div>
                    <a class="weui-btn weui-btn_plain-primary" href="${ctx}/mobileActivity/event/${activityUser.activityId}">返回活动</a>
                </div>
                <div class="f1"></div>
                <div>
                    <a class=" weui-btn weui-btn_primary" href="${ctx}/mobileActivity/toJoinDetail/${activityUser.activityId}/user${activityUser.userId}">查看报名</a>
                </div>
                <div class="f2"></div>
            </div>
        </div>

        <div class="f1"></div>
        <div class="copyRight">
            <a href="/html/aboutus.html" style="color: #aaa">
                <img src="Static/logo.png">
            </a>
        </div>
    </div>
</div>
<script type="text/javascript" src="https://pingjs.qq.com/h5/stats.js" name="MTAH5" sid="500049665"></script>
</body>
</html>
